package com.huanzhidadi.singleweb.fastjson.filter;

import com.alibaba.fastjson2.filter.ValueFilter;

/**
 * 去除值的前后端空格
 */
public class TrimFilter implements ValueFilter {
    @Override
    public Object apply(Object object, String name, Object value) {
        if (value instanceof String) {
            value = ((String) value).trim();
        }
        return value;
    }
}
